Merge "rdbms: Fix grammar in DBTransactionSizeError log message"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 17 Aug 2017 22:18:11 +0000 (22:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 17 Aug 2017 22:18:11 +0000 (22:18 +0000)
1  2 
includes/libs/rdbms/loadbalancer/LoadBalancer.php

@@@ -62,6 -62,8 +62,6 @@@ class LoadBalancer implements ILoadBala
        private $chronProt;
        /** @var BagOStuff */
        private $srvCache;
 -      /** @var BagOStuff */
 -      private $memCache;
        /** @var WANObjectCache */
        private $wanCache;
        /** @var object|string Class name or object With profileIn/profileOut methods */
                } else {
                        $this->srvCache = new EmptyBagOStuff();
                }
 -              if ( isset( $params['memCache'] ) ) {
 -                      $this->memCache = $params['memCache'];
 -              } else {
 -                      $this->memCache = new EmptyBagOStuff();
 -              }
                if ( isset( $params['wanCache'] ) ) {
                        $this->wanCache = $params['wanCache'];
                } else {
                        }
  
                        $this->loadMonitor = new $class(
 -                              $this, $this->srvCache, $this->memCache, $this->loadMonitorConfig );
 +                              $this, $this->srvCache, $this->wanCache, $this->loadMonitorConfig );
                        $this->loadMonitor->setLogger( $this->replLogger );
                }
  
                        if ( $limit > 0 && $time > $limit ) {
                                throw new DBTransactionSizeError(
                                        $conn,
-                                       "Transaction spent $time second(s) in writes, exceeding the $limit limit.",
+                                       "Transaction spent $time second(s) in writes, exceeding the limit of $limit.",
                                        [ $time, $limit ]
                                );
                        }